import type {Coordinate} from "@/business/entity/coordinate/coordinate.entity";
import type {Style} from "@/business/entity/style/style.entity";

/**
 *  图形公共实体类
 * @author JiangXincan
 * @date 2020/5/19 13:50
 */
export class Graph {

    private _id: string;            // 组件ID

    private _center: Coordinate;    // 中心点

    private _style: Style;          // 样式

    constructor(id: string, center: Coordinate, style: Style) {
        this._id = id;
        this._center = center;
        this._style = style;
    }

    get id(): string {
        return this._id;
    }

    set id(value: string) {
        this._id = value;
    }

    get center(): Coordinate {
        return this._center;
    }

    set center(value: Coordinate) {
        this._center = value;
    }

    get style(): Style {
        return this._style;
    }

    set style(value: Style) {
        this._style = value;
    }
}
